package cn.javacv.gulimall.product.service;

import cn.javacv.gulimall.product.vo.AttrVO;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.javacv.gulimall.common.utils.PageUtils;
import cn.javacv.gulimall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author dingqiang
 * @email 295213096@qq.com
 * @date 2020-08-14 07:22:12
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVO attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, long catelogId, String type);

    AttrVO getAttrInfoById(Long id);

    void updateAttrById(AttrVO attrVO);

    List<AttrEntity> getRelationAttr(long attrgroupId);

    List<AttrEntity> getNoRelationList(long attrgroupId);

    PageUtils getNoRelationPage(Map<String, Object> params, long attrgroupId);

    List<Long> selectSearchAttrs(List<Long> attrIdList);
}

